package com.hanamaki.struct;

public class ForDemo07 {

    public static void main(String[] args) {

        /*我们首先打印第一列 */
//        for (int i = 1; i <= 9; i++) {
//            System.out.println(1 + "*" + i + "=" + (1 * i) + "\t");
//        }

        /*想要将  1 动态递增  需要使用for循环*/
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j + "*" + i + "=" + (j * i) + "\t");
            }
            System.out.println();
        }


    }
}
